package cn.good.yan.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;


/**
 * User 实体  - 演示 多数据源
 *
 * @author shengren.yan
 * @create 2022-04-06
 */
@ToString
@Data
@TableName(value ="user")
public class User implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * user_id
     */
    @TableId(value = "user_id",type = IdType.AUTO)
    private String userId;

    /**
     * user_name
     */
    private String userName;

    /**
     * user_mailbox
     */
    private String userMailbox;

    /**
     * user_password
     */
    private String userPassword;

    /**
     * user_tel
     */
    private String userTel;

    /**
     * wechat_id
     */
    private String wechatId;

    /**
     * user_role_id
     */
    private Integer userRoleId;

    /**
     * user_role_name
     */
    private String userRoleName;

    /**
     * user_date
     */
    private Date userDate;

    /**
     * user_mnt_date
     */
    private Date userMntDate;

    public User() {}

}
